var t = require("../../../utils/city.js"), e = (getApp(), void 0);

Page({
    data: {
        letters: [ "#", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "W", "X", "Y", "Z" ],
        lettersFlag: 0,
        cityData: t.cityData,
        scrollIntoView: "",
        showLetter: !1,
        hotCity: [ {
            name: "杭州市"
        }, {
            name: "湖州市"
        }, {
            name: "绍兴市"
        }, {
            name: "宁波市"
        } ]
    },
    clickIntoView: function(t) {
        var a = t.currentTarget.dataset.index;
        e.setData({
            scrollIntoView: 0 == a ? "top" : e.data.letters[a],
            lettersFlag: a,
            showLetter: !0
        }), setTimeout(function() {
            e.setData({
                showLetter: !1
            });
        }, 800);
    },
    moveIntoView: function(t) {
        console.log(t);
    },
    onLoad: function(t) {
        (e = this).setData({
            location: wx.getStorageSync("getLocation")
        });
    },
    chooseCity: function(t) {
        var e = t.currentTarget.dataset.name, a = getCurrentPages();
        getCurrentPages()[a.length - 2].setData({
            cityName: e
        }), wx.setStorageSync("city_name", e), wx.navigateBack({
            delta: 1
        });
    }
});